<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html><head>
<title>file</title>
</head><body>
<p>[<a href="mxdoc.htm">mainpage</a>]
[<a href="tags.htm">tags</a>]<br>
<h1><a name="file">module: file</a></h1><p><b>Some simple file oriented functions</b><p>

This module contains some simple file oriented functions primarily
intended to be useful for GUI development.  
(<a href="../include/detk/file.h">../include/detk/file.h</a>)<p>Part of the <a href="detk.htm">detk</a> library.<ul><li>
<a name="const char* mx_basename(const char* fname)"><code>const char* mx_basename(const char* fname)</code></a>
<p>
<p>This function returns a pointer to the base name of a file path.  
(<a href="../include/detk/file/basename.c">../include/detk/file/basename.c</a>)
<p>basename taken from the <a href="http://www.delorie.com/djgpp/">DJGPP</a> sources.  
(<a href="../include/detk/file/basename.c">../include/detk/file/basename.c</a>)<p></li>
<li>
<a name="int mx_fgetw(FILE* f)"><code>int mx_fgetw(FILE* f)</code></a>
<p>
<p>This function reads a binary word from a FILE using a (Intel? 
Motorola?) byte order.  
(<a href="../include/detk/file/fgetw.c">../include/detk/file/fgetw.c</a>)
<p>fgetw taken from <a href="http://alleg.sourceforge.net/">Allegro</a> sources.  
(<a href="../include/detk/file/fgetw.c">../include/detk/file/fgetw.c</a>)<p></li>
<li>
<a name="unsigned mx_filename_match(const char* p, const char* t)"><code>unsigned mx_filename_match(const char* p, const char* t)</code></a>
<p>
<p>This function return non-zero if a filename matches a given pattern.  
Patterns match '*' to one or more characters and '?' to a single character.  
(<a href="../include/detk/file/match.c">../include/detk/file/match.c</a>)

<p>Multiple patterns can be matched by sepaarating them
            with ';' characters.  
(<a href="../include/detk/file/match.c">../include/detk/file/match.c</a>)
<p>Filename matching code taken with permission from the very nice
   webpage of Alessandro Cantaore
   <a href="http://xoomer.virgilio.it/acantato/dev/wildcard/wildmatch.html">
   http://xoomer.virgilio.it/acantato/dev/wildcard/wildmatch.html</a>
 
(<a href="../include/detk/file/match.c">../include/detk/file/match.c</a>)<p></li>
<li>
<a name="void mx_path_fix(char* ptr)"><code>void mx_path_fix(char* ptr)</code></a>
<p>
<p>This function corrects a path specifier by removing /./ directories
and moving /../ to the start of the path.  
(<a href="../include/detk/file/pathfix.c">../include/detk/file/pathfix.c</a>)

<p>On MSDOS platforms leading drive specs are ignored.  
(<a href="../include/detk/file/pathfix.c">../include/detk/file/pathfix.c</a>)<p></li>
</ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb  4 15:16:27 2007


</body></html>
